package com.example.base.base

import android.app.Activity
import android.os.Bundle
import android.view.LayoutInflater
import androidx.annotation.LayoutRes
import androidx.appcompat.app.AppCompatActivity
import androidx.viewbinding.ViewBinding
import java.lang.reflect.ParameterizedType

open class BaseActivity : AppCompatActivity {

    private var contentLayoutId: Int? = null

    constructor(): super()
    constructor(@LayoutRes contentLayoutId: Int): super() {
        this.contentLayoutId = contentLayoutId
    }

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        contentLayoutId?.apply { setContentView(this) }
    }
}


